package com.pine.app.module.security.oauth.plugin;

import com.pine.app.module.security.core.common.enums.ResponseProduceType;

import java.lang.annotation.*;

/**
 * @Description:   插件注解
 * @Author: xiaoyuan
 * @Date: 2020/3/8 16:46
 */
@Target({ElementType.TYPE,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Plugin {
	/**
	 * 插件开关
	 * @return
	 */
	 boolean enabled() default true;

	/**
	 *  匹配插件码  默认为方法名
	 * @return
	 */
	String[] value();


	ResponseProduceType responseType() default  ResponseProduceType.JSON;



}
